package com.tongji.showroom.events
{ 
	import com.tongji.showroom.view.twoD.Furniture;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author jiarong
	 * 
	 */
	public class SearchSceneEvent extends Event
	{
		public static const GET_ALL_SCENES:String = "getAllScenes";
		public static const SEARCH_ALL_SCENES:String = "searchAllScenes";
		public static const UPDATE_SCENES:String = "updateScenes";
		public static const GET_SCENES:String = "getScenes";
		public static const DRAG_ROOM:String = "dragRoom";
		
		public var sceneId:String;
		public var styleId:String;
		public var scene:String;
		public var currentPage:int;
		public var pageSize:int;
		public var room:Furniture;
		
		/**
		 * 
		 * @param type
		 * SEARCH_ALL_SCENE：搜索所有场景
		 * UPDATE_SCENES：更新场景数据到model
		 * GET_SCENES：初始化要显示的场景数据
		 * @param sceneId
		 * sceneId：场景编号
		 * @param styleId
		 * styleId:风格编号
		 * @param currentPage
		 * currentPage：当前页码
		 * @param pageSize
		 * pageSize：每页可显示的图片数
		 * @param scene
		 * scene：保存从服务器返回的string类型数据
		 * 
		 */		
		
		public function SearchSceneEvent(type:String, sceneId:String = null, styleId:String = null, currentPage:int = 0, pageSize:int = 0, scene:String = null, room:Furniture = null)
		{
			super(type);
			
			this.sceneId = sceneId;
			this.styleId = styleId;
			this.currentPage = currentPage;
			this.pageSize = pageSize;
			this.scene = scene;
			this.room = room;
		}
		
		override public function clone():Event
		{
			return new SearchSceneEvent(type, sceneId, styleId, currentPage, pageSize, scene, room);
		}
	}
}